//
//  XMLDefaultDelegate.h
//  Seizure
//
//  Parse XML --
//  Reads xml to determine if request was successful or what went wrong
//  The NSString result in this class is the text of the <title>
//  If no <title> exists or it is empty, this means success
//
//  <result>
//  <title> error message </title>
//  <message> detailed error message </message>
//  </result>
//
//  Created by student on 2/28/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XMLDefaultDelegate : NSObject <NSXMLParserDelegate>

@property (strong) NSString* result;

@property (strong) NSMutableString *currentElementValue;

- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI
 qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict; 

- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI
qualifiedName:(NSString *)qName;

- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string;

@end
